<?php echo $header; ?>
<?php echo $column_left; ?><?php echo $column_right; ?>
<?php 
	$spanClass="span9";
	if( strlen(trim($column_left)) > 0  && strlen(trim($column_right)) > 0 ){
		$spanClass="span6";
	}else if(strlen(trim($column_left)) > 0  || strlen(trim($column_right)) > 0 ){
		$spanClass="span9";
	}else if(strlen(trim($column_left))== 0 && strlen(trim($column_right))== 0){
		$spanClass="span12";
	}else{
		$spanClass="span6";
	}
?>
<div class="<?php echo $spanClass;?>">
    <div id="content">
    		<div class="row">
	            <?php echo $content_top; ?>             
	            <h1 style="display: none;"><?php echo $heading_title; ?></h1>
	            <div class="clearfix"></div>
				<?php echo $content_bottom; ?>
			</div>
    </div>
</div><!--/span9-->

<div class="clearfix"></div>

<?php echo $content_bottom_2; ?>

<div class="clearfix"></div>

<?php if($this->config->get('firstmblock_title_' . $this->config->get('config_language_id')) != '') { ?> 
<div class="span3">
	<div class="cmsBlock radius">
    	 <?php 
         if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') $path_image = HTTPS_IMAGE;
         else $path_image = HTTP_IMAGE; 
         if($this->config->get('firstmblock_img')!='') { ?>
         <img src="<?php echo $path_image . $this->config->get('firstmblock_img') ?>" alt="" ><!--custom image-->
         <?php } ?> 
         <?php if($this->config->get('firstmblock_title_' . $this->config->get('config_language_id')) != '') { ?> 
        <h3><?php echo $this->config->get('firstmblock_title_' . $this->config->get('config_language_id'))?></h3>
        <?php } ?>
        <?php echo $this->config->get('firstmblock_desc_' . $this->config->get('config_language_id'))?>
    </div>
</div>
<?php } ?> 

<?php if($this->config->get('secondmblock_title_' . $this->config->get('config_language_id')) != '') { ?> 
<div class="span3">
	<div class="cmsBlock radius">
    	<?php 
         if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') $path_image = HTTPS_IMAGE;
         else $path_image = HTTP_IMAGE; 
         if($this->config->get('secondmblock_img')!='') { ?>
         <img src="<?php echo $path_image . $this->config->get('secondmblock_img') ?>" alt="" ><!--custom image-->
         <?php } ?> 
         <?php if($this->config->get('secondmblock_title_' . $this->config->get('config_language_id')) != '') { ?> 
        <h3><?php echo $this->config->get('secondmblock_title_' . $this->config->get('config_language_id'))?></h3>
        <?php } ?>
        <?php echo $this->config->get('secondmblock_desc_' . $this->config->get('config_language_id'))?>
    </div>
</div>
<?php } ?> 

<?php if($this->config->get('thirdmblock_title_' . $this->config->get('config_language_id')) != '') { ?> 
<div class="span3">
	<div class="cmsBlock radius">
    	<?php 
         if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') $path_image = HTTPS_IMAGE;
         else $path_image = HTTP_IMAGE; 
         if($this->config->get('thirdmblock_img')!='') { ?>
         <img src="<?php echo $path_image . $this->config->get('thirdmblock_img') ?>" alt="" ><!--custom image-->
         <?php } ?> 
         <?php if($this->config->get('thirdmblock_title_' . $this->config->get('config_language_id')) != '') { ?> 
        <h3><?php echo $this->config->get('thirdmblock_title_' . $this->config->get('config_language_id'))?></h3>
        <?php } ?>
        <?php echo $this->config->get('thirdmblock_desc_' . $this->config->get('config_language_id'))?>
    </div>
</div>
<?php } ?> 

<?php if($this->config->get('fourthmblock_title_' . $this->config->get('config_language_id')) != '') { ?> 
<div class="span3">
	<div class="cmsBlock radius">
    	<?php 
         if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') $path_image = HTTPS_IMAGE;
         else $path_image = HTTP_IMAGE; 
         if($this->config->get('fourthmblock_img')!='') { ?>
         <img src="<?php echo $path_image . $this->config->get('fourthmblock_img') ?>" alt="" ><!--custom image-->
         <?php } ?> 
         <?php if($this->config->get('fourthmblock_title_' . $this->config->get('config_language_id')) != '') { ?> 
        <h3><?php echo $this->config->get('fourthmblock_title_' . $this->config->get('config_language_id'))?></h3>
        <?php } ?>
        <?php echo $this->config->get('fourthmblock_desc_' . $this->config->get('config_language_id'))?>
    </div>
</div>
<?php } ?> 

<div class="clearfix"></div>

<?php echo $footer; ?>

